import 'package:fish_redux/fish_redux.dart';
import 'package:fish_redux_demo/global_store/action.dart';
import 'package:fish_redux_demo/global_store/store.dart';
import 'action.dart';
import 'state.dart';

Effect<EditState> buildEffect() {
  return combineEffects(<Object, Effect<EditState>>{
    EditAction.onChangeTheme: _onChangeTheme
  });
}
void _onChangeTheme(Action action, Context<EditState> ctx) {
  //change global data
  GlobalStore.store.dispatch(GlobalActionCreator.onChangeThemeColor());
}
